using System.Net.Sockets;

namespace ThinkAway.Net.Sockets
{
    /// <summary>
    /// 
    /// </summary>
    public class StateObject 
    {
        /// <summary>
        /// Client socket.
        /// </summary>
        public Socket WorkSocket;
        /// <summary>
        /// Receive buffer.
        /// </summary>
        public byte[] BufferData;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="socket"></param>
        /// <param name="length"></param>
        public StateObject(Socket socket ,int length)
        {
            WorkSocket = socket;
            BufferData = new byte[length];
        }
    }
}